require.config({
    urlArgs: "v=" + 1234,//requirejs.s.contexts._.config.config.site.version,
    packages: [{
        name: 'moment',
        location: '../libs/moment',
        main: 'moment'
    }
    ],
    paths: {
        'jquery': '../libs/jquery-2.2.4/dist/jquery.min',
        'bootstrap': '../libs/bootstrap-3.4.1/dist/js/bootstrap.min',
    }

});

require(['jquery', 'bootstrap'], function ($, undefined) {
    //初始配置
    var Config = {
        'jsname' : 'test',
        'actionname' : 'test'
    };//requirejs.s.contexts._.config.config;
    var paths = {};
    require.config({paths: paths});

    // 初始化
    $(function () {
        console.log(Config);
        //加载相应模块
        if (Config.jsname) {
            require([Config.jsname], function (Controller) {
                Controller[Config.actionname] != undefined && Controller[Config.actionname]();
            }, function (e) {
                console.error(e);
                // 这里可捕获模块加载的错误
            });
        }
    });
});